package top.lishuoboy.hibernate.validator.dto;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <h1>Result枚举值</h1>
 * <p>
 * 2024-10-25
 *
 * @author lishuoboy
 */
@ApiModel(description = "结果")
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Getter
@ToString
public enum ResultEnum implements Serializable {
    success("成功"),

    // 客户端错误 start
    invalidParameter("无效参数"),
    missingParameter("缺少参数"),
    parameterTypeMismatch("参数类型不匹配"),
    // 客户端错误 end

    // 服务器错误 start
    serverError("服务器错误"),
    // 服务器错误 end
    ;

    private String msg;

    private static final long serialVersionUID = 1L;
}
